package com.jike.shop.cloud.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 订单支付状态
 */
@Getter
public enum OrderPayStatusEnum {

    WAIT_PAYMENT(0, "待支付"),
    PAY_SUCCESS(1, "支付成功"),
    PAY_FAIL(2, "支付失败");

    /**
     * 订单支付状态
     */
    @EnumValue
    private int code;
    /**
     * 订单支付状态描述
     */
    private String desc;

    OrderPayStatusEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }
}
